Home > Java Programming > Final and Datatypes > Questions and Answers
01. |
Class F { Static void test(int I,int j){ System.out.println(“integerâ€); } Static void test(byte …b){ System.out.println(“byteâ€); } Public static void main(String args[]){ byte s=10; test(s,s); } } | |||||||||||
|
02. |
Class F { Static void test(Byte I,Byte j){ System.out.println(“BByteâ€); } Static void test(byte …b){ System.out.println(“byteâ€); } Public static void main(String args[]){ byte s=10; test(s,s); } } | |||||||||||
|
03. |
Class w{ Public static void main(String agrs[]){ System.out.println(“helloâ€); } Public static void main(String agrs[]){ System.out.println(“helloâ€); } } | |||||||||||
|
04. |
Class F { Static void test(int j){ System.out.println(“intâ€); } Static void test(byte b){ System.out.println(“byteâ€); } Static void test(byte… b){ System.out.println(“byte-varargsâ€); } Public static void main(String args[]){ byte s=10; test(s); } } | |||||||||||
|